#include<iostream>
#include<unistd.h>
#include"Thread.hpp"
void Print()
{
    while(true)
    {
        std::cout << "我是一个封装的线程" << std::endl;
        sleep(1);
    }
}
int main()
{
    Thread t(Print);
    t.Run();
    std::cout << "是否启动成功: " << t.IsRunning() << std::endl; 
    std::cout << "启动时间戳: " << t.StartTimestamp() << std::endl; 
    std::cout << "线程的名字: " << t.Name() << std::endl; 
    t.Join();
    return 0;
}